
public class Flight extends Edge {
	private GMTtime departure;
	private GMTtime arrival;
	private String airline;
	private int number;

	Flight(Airport origin, Airport destination, GMTtime departure, GMTtime arrival, String airline, int number){
		this.head = origin;
		this.tail = destination;
		this.departure = departure;
		this.arrival = arrival;
		this.weight = arrival.minutesSince(departure);
		this.airline = airline;
		this.number = number;
	}
	public String getAirline() {
		return airline;
	}
	public GMTtime getDeparture() {
		return departure;
	}
	public GMTtime getArrival(){
		return arrival;
	}
	public int getNumber() {
		return number;
	}
	public String toString(){
		return airline + " " + number + " ("+head.getName()+" "+departure+" --> "+tail.getName()+" "+arrival+")";
	}
	
}
